package com.levi.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author shentong
 * @since 2023/3/28 12:18
 */
@Controller
public class PageController {


    @GetMapping("/ws")
    public String myPage(Model model) {
        model.addAttribute("message", "Hello Thymeleaf!");
        return "webSocket";
    }
}
